home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 126-150 / disk_147 / sys / bsd / bsd.zoo / sysdef.h < prev    next >
C/C++ Source or Header  |  1988-07-25  |  1KB  |  30 lines

  1. /*
  2.  *        BSD unix based systems (sunos, ultrix)
  3.  */
  4. #include <stdio.h>
  5.  
  6. #define    KBLOCK    8192            /* Kill grow.            */
  7. #define    GOOD    0            /* Good exit status.        */
  8. #define    SYMBLINK    1        /* Handle symbolic links    */
  9. #define    MAXPATH    256            /* Maximum length of path for chdir */
  10.  
  11. typedef int    RSIZE;            /* Type for file/region sizes    */
  12. typedef short    KCHAR;            /* Type for internal keystrokes    */
  13.  
  14. /*
  15.  * Macros used by the buffer name making code.
  16.  * Start at the end of the file name, scan to the left
  17.  * until BDC1 (or BDC2, if defined) is reached. The buffer
  18.  * name starts just to the right of that location, and
  19.  * stops at end of string (or at the next BDC3 character,
  20.  * if defined). BDC2 and BDC3 are mainly for VMS.
  21.  */
  22. #define    BDC1    '/'            /* Buffer names.        */
  23.  
  24. #define MALLOCROUND(m)    (m+=7,m&=~7)    /* round up to 8 byte boundry    */
  25.  
  26. #define    fncmp        strcmp        /* file name comparison        */
  27. #define    unlinkdir(fn)    rmdir(fn)    /* unlink directory        */
  28. char *getenv();
  29. #define    gettermtype()    getenv("TERM")    /* determine terminal type    */
  30.